<?php
	
	include("config.php");
	
	$id = $_GET["id"];
	$sec_id = $_GET["sec_id"];
	$result=mysql_query("SELECT * FROM course JOIN section ON course.id = section.course_id WHERE course_id = '".$id."' AND section.section_number = '".$sec_id."'");
	$row=mysql_fetch_array($result);
	
	echo "Instructor: ".$row['instructor']."\n\n";
	echo "Location: ".$row['building_short_name']."-".$row['room_number']."\n\n";
	echo "Instructor notes: ".$row['instructor_notes']."\n\n";
	echo "Description:\n".$row['description'];
	?>